<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 首先引入必要的文件 -->
    <link rel="stylesheet" href="/lib/fontawesome/css/font-awesome.css">
    <link rel="stylesheet" href="/lib/mui/css/mui.css">
    <link rel="stylesheet" href="/css/common.css">
    <link rel="stylesheet" href="/css/index.css">
    <title>首页</title>
</head>
<body>
    <header class="pinYouGou_header">
        <div class="mui-input-row mui-search">
                <input type="search" class="mui-input-clear" placeholder=""> 
         </div>
    </header>
    <div class="pinYouGou_main">
        <div class="pinYouGou_Swiper">
            <!-- 轮播图 -->
        </div>
        <div class="pyg_catitems">
            <!-- 分类栏 -->
        </div>
        <div class="pyg_goodslist">
            <!-- 商品列表 -->
        </div>
    </div>
    <footer class="pinYouGou_footer">
        <a href="/index.html">
            <span class="fa fa-home"></span>
            <div>首页</div>
        </a>
        <a href="/pages/categories.html">
            <span class="fa fa-list-ul"></span>
            <div>分类</div>
        </a>
        <a href="javascript">
            <span class="fa fa-cart-plus"></span>
            <div>购物车</div>
        </a>
        <a href="javascript">
            <span class="fa fa-user"></span>
            <div>我的</div>
        </a>
    </footer>
</body>
<!-- 模板引擎 -->
    <!-- 轮播图模板引擎 -->
    <script type="text/template" id="pinYouGou_Swiper_Temp">
        <div class="mui-slider">
            <div class="mui-slider-group mui-slider-loop">
                    <!--支持循环，需要重复图片节点-->
                    <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{data[data.length-1].image_src}}" /></a></div>
                    {{each data value index}}
                    <div class="mui-slider-item"><a href="#"><img src="{{value.image_src}}" /></a></div>
                    {{/each}}
                    <!--支持循环，需要重复图片节点-->
                    <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{data[0].image_src}}" /></a></div>
            </div>
            <div class="mui-slider-indicator">
                    {{each data value index}}
                        {{if index==0}}
                        <div class="mui-indicator mui-active"></div>
                        {{/if}}
                        {{if index!=0}}
                        <div class="mui-indicator"></div>
                        {{/if}}
                    {{/each}}
            </div>
        </div>
    </script>
    <!-- 轮播图模板引擎 -->
    <!-- 分类栏模板引擎 -->
    <script type="text/template" id="pyg_catitems_temp">
        {{each data value index}}
        <a href=""><img src="{{value.image_src}}" alt=""></a>
        {{/each}}
    </script>
    <!-- 分类栏模板引擎 -->
    <!-- 商品列表模板引擎 -->
    <script type="text/template"id="pyg_goodslist_temp">
        {{each data value index}}
            <div class="goodslist">
                    <img src="{{value.group_img}}" alt="">
                    <ul>
                        {{each value.goods value2 index2}}
                            <li>
                                <img src="{{value2.goods_small_logo}}" alt="">
                                <p>{{value2.goods_name}}</p>
                                <span>￥{{value2.goods_price}}</span>
                                <a href="javascript:;" class="mui-btn mui-btn-primary mui-btn-outlined">找相似</a>
                            </li>
                        {{/each}}
                    </ul>
            </div>
        {{/each}}
    </script>
    <!-- 商品列表模板引擎 -->
<!-- 模板引擎 -->
<script src="/lib/arttemplate/template-web.js"></script>
<script src="/lib/zepto/zepto.js"></script>
<script src="/lib/mui/js/mui.js"></script>
<script src="/js/index.js"></script>
</html>